﻿#include "ggbondbtnprogressbarplugin.h"
#include "ggbondbtnprogressbar.h"

#include <QtPlugin>

GGbondBtnProgressBarPlugin::GGbondBtnProgressBarPlugin(QObject *parent)
    : QObject(parent)
{}

void GGbondBtnProgressBarPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool GGbondBtnProgressBarPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *GGbondBtnProgressBarPlugin::createWidget(QWidget *parent)
{
    return new GGbondBtnProgressBar(parent);
}

QString GGbondBtnProgressBarPlugin::name() const
{
    return QLatin1String("GGbondBtnProgressBar");
}

QString GGbondBtnProgressBarPlugin::group() const
{
    return QLatin1String("");
}

QIcon GGbondBtnProgressBarPlugin::icon() const
{
    return QIcon(QLatin1String(":/res/btnProgressBar.png"));
}

QString GGbondBtnProgressBarPlugin::toolTip() const
{
    return QLatin1String("");
}

QString GGbondBtnProgressBarPlugin::whatsThis() const
{
    return QLatin1String("");
}

bool GGbondBtnProgressBarPlugin::isContainer() const
{
    return false;
}

QString GGbondBtnProgressBarPlugin::domXml() const
{
    return QLatin1String(R"(<widget class="GGbondBtnProgressBar" name="gGbondBtnProgressBar">
</widget>)");
}

QString GGbondBtnProgressBarPlugin::includeFile() const
{
    return QLatin1String("ggbondbtnprogressbar.h");
}
